<script type="text/javascript">
 $(document).ready(function(){
	var is_setup = $("#is_pass_setup").val();
	if(is_setup=='1'){
		$.ajax({
		url: '<?php echo base_url();?>password_setup',
		success:function(response){
			$("#main-content-wrap").html(response);
		}//end success

		});//end ajax
		return false;
	}
	return false;
 });
</script>

<div id = "main-contentz">
<div id = "main-content-area">
	<div id = "main-content-wrap">

		<div id = "message-listing">
			<div id = "m-listing-top">
				<p>Message Summary Listing</p>
				<p>List of all messages you have been sent.</p>

			</div>
			<h2>Your Current Messages Sent List</h2>

			<div id = "m-listing-context">
				<ul>
					<li>
						<div class = "m-count">
							<p><?php echo $numPhotos; ?></p>
						</div>
						<div id = "m-listing-type">
							<h2><a href = "<?php echo base_url(); ?>messages/type/photos" title = "Photos">Photos</a></h2>
							<p>Messages that include images. </p>
						</div>
					</li>

					<li>
						<div class = "m-count">
							<p><?php echo $numVideos; ?></p>
						</div>
						<div id = "m-listing-type">
							<h2><a href = "<?php echo base_url(); ?>messages/type/videos" title = "Videos">Videos</a></h2>
							<p>Video Messages you created for your loved ones to see.</p>
						</div>
					</li>

					<li>
						<div class = "m-count">
							<p><?php echo $numNotes; ?></p>
						</div>
						<div id = "m-listing-type">
							<h2><a href = "<?php echo base_url(); ?>messages/type/notes" title = "Notes">Notes</a></h2>
							<p>Note messages.</p>
						</div>
					</li>

					<li>
						<div class = "m-count">
							<p><?php echo $numDocuments; ?></p>
						</div>
						<div id = "m-listing-type">
							<h2><a href = "<?php echo base_url(); ?>messages/type/documents" title = "Documents">Documents</a></h2>
							<p>Files and documents.</p>
						</div>
					</li>

					<li>
						<div class = "m-count">
							<p><?php echo $numJournal; ?></p>
						</div>
						<div id = "m-listing-type">
							<h2><a href = "<?php echo base_url(); ?>messages/type/journal" title = "Journal">Journal</a></h2>
							<p>Your personal journal.</p>
						</div>
					</li>

				</ul>
			</div>
			<div id = "m-listing-bottom">
				<p>Send  messages that will be shown to your loved one and the rest of the world. You can attach
photos, videos, and documents in your messages.</p>
			</div>


		</div>


	</div>
	<div class="clear"></div>
	<?php if(!empty($bottom_ads)):?>
		<div class="rep_ads">
			<img src="<?php echo base_url();?>assets/images/<?php echo $bottom_ads->banner;?>" alt=""/>
		</div>
	<?php endif;?>
</div>
</div>
<input type="hidden" value="<?php echo ($records->password_setup_status == 0) ? '1' : ''; ?>" id="is_pass_setup">

